<?php
/* $Id: delete.units.php,JOP
/**
 * @package Issue-Tracker
 * @subpackage Units
 */
if (strpos($_SERVER['PHP_SELF'],basename(__FILE__)) !== false) {
  print "Direct module access forbidden.";exit;}

if (is_admin()) {

  if (!empty($_GET['recid'])) {
     delete_unit_record($_GET['recid']);
     }

    redirect("?module=units&gid=".$_GET['gid']);

} else {
  access_denied();
}
?>